package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 患者对象 t_patient
 * 
 * @author 杨一迪
 * @date 2024-12-28
 */
@Data
public class TPatient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 患者信息表主键 */
    private Long id;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String name;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idNumber;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthDate;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 家庭住址 */
    @Excel(name = "家庭住址")
    private String address;

    /** 紧急联系人 */
    @Excel(name = "紧急联系人")
    private String emergencyContact;

    /** 紧急联系人电话 */
    @Excel(name = "紧急联系人电话")
    private String emergencyContactPhone;

    /** 所属科室ID */
    @Excel(name = "所属科室ID")
    private Long departmentId;

    /** 入住病房ID */
    @Excel(name = "入住病房ID")
    private Long wardId;

    /** 入住床位ID */
    @Excel(name = "入住床位ID")
    private Long bedId;

    /** 主治医生ID */
    @Excel(name = "主治医生ID")
    private Long attendingDoctorId;

    /** 责任护士ID */
    @Excel(name = "责任护士ID")
    private Long responsibleNurseId;

    /** 是否删除，0表示未删除，1表示已删除 */
    private Integer isDelete;

}
